import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Index
  },
  {
    path: '/detail',
    component: () => import('../views/DetailView.vue'),
  },
  {
    path: '/global',
    name: 'global',
    component: () => import('../views/GlobalView.vue'),
  },
  {
    path: '/cake',
    name: 'cake',
    component: () => import('../views/CakeView.vue'),
  },
  {
    path: '/jiesuan',
    name: 'jiesuan',
    component: ()=>import('../views/jiesuanView.vue')
  },
  {
    path:'/vip',
    name:'Vip',
    component:()=>import('../views/vipView.vue')
  },
  {
    path: '/gwc',
    name: 'gwc',
    component: ()=>import('../views/gwcView.vue')
  },
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
